home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 2.4 KB | 80 lines | [TEXT/GEOL] |
- Item 2451862 11-May-90 17:07PDT
-
- From: CHANDLER1 Chandler, Dick
-
- To: MACAPP.TECH$ MacApp Technical
-
- Sub: Link error/method stripping?
-
-
- I'm having a link problem with C++ and MacApp,
-
- I am getting link errors on methods inside an object that I don't call. I
- don't get link errors on methods inside the same object which I do call.
-
- In fact if I make a call in my source code to a method I'm getting an error to,
- the error goes away.
-
- I'm doing a if(gDeadStripSuppression) on the objects.
-
- HELP! Is there something I'm missing or don't know???
-
-
-
- I'VE DECLARED A GENERAL SERIAL PORT OBJECT:
-
-
- // ============================================================================
- // CLASS: T S e r i a l P o r t
- //
- // FUNCTIONSerial Port object
- // ============================================================================
- class TSerialPort : public HandleObject
- {
- public:
- short fInRefNum, fOutRefNum; // port reference numbers
- SPortSel fWhichPort;
-
- virtual pascal OSErr ISerialPort ( SPortSel whichPort, short theSpeed );
- virtual pascal void ClearPort ();
- virtual pascal Boolean GetChars ( char *c, long *countPtr );
- virtual pascal OSErr PutChars ( char *c, long count );
- virtual pascal void ClosePort ();
- };
-
-
- I THEN DECLARED A SPECIALIZED SERIAL OBJECT
-
-
- // ==================================================================
- class TMySerialPort: public TSerialPort {
-
- public:
-
- pascal virtual Boolean PutCommand( char command, long parameter );
- pascal virtual Boolean GetCommand( char command, long result );
-
- private:
-
- };
-
-
- I THEN GET THE FOLLOWING LINK ERRORS:
-
- ### Link: Error: Undefined entry, name: (Error 28) "ClearPort__11TSerialPort"
- Referenced from: __vtbl__13TMySerialPort in file:
- HD:cpgms:C++pgms:SerialTest:.Debug Files:Udialogs.cp.o
- ### Link: Error: Undefined entry, name: (Error 28) "ClosePort__11TSerialPort"
- Referenced from: __vtbl__13TMySerialPort in file:
- HD:cpgms:C++pgms:SerialTest:.Debug Files:Udialogs.cp.o
-
- NOTE THAT THE GENERAL OBJECT WAS WORKING IN ANOTHER PROGRAM I WROTE. THE
- PROBLEM OCCURRED WHEN I CREATED THE SECOND OBJECT.
-
- AS YOU CAN SEE I'M GETTING ERRORS ON THE ClearPort and ClosePort METHODS, THESE
- ARE THE ONLY TWO METHODS I DON'T CALL IN THE PROGRAM. I USED TO GET AN ERROR
- FOR GetChars UNTIL I MADE A CALL TO IT.
-
- ANY IDEAS??!!??
-
-